<?php
class Feedback extends CI_Controller{
	function __construct(){
		parent::__construct();
		$this->load->model('feedback_m','feedback');
		$this->load->library('result');
	}
	
	function add(){
		$data=array(
			'content'=>$this->uri->segment(3),
			'token'=>$this->uri->segment(4)
		);

		if($this->feedback->insert($data)>0){
			$this->result->setData(0,'添加成功',$data);
		}else{
			$this->result->setData(1,'添加失败','');
		}
		$this->result->output();
	}
}
?>